<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>ML-HElib: SimpleTrainingSet Class Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">ML-HElib </a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_simple_training_set-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SimpleTrainingSet Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_simple_training_set_8h_source.html">SimpleTrainingSet.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aea1837a6325446f265e4751ff834fe6a"><td class="memItemLeft" align="right" valign="top"><a id="aea1837a6325446f265e4751ff834fe6a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SimpleTrainingSet</b> (int batchSize)</td></tr>
<tr class="separator:aea1837a6325446f265e4751ff834fe6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1dbfe37c3c0d986f805c25a902c5502"><td class="memItemLeft" align="right" valign="top"><a id="aa1dbfe37c3c0d986f805c25a902c5502"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>loadFromH5</b> (const std::string &amp;sampleFile, const std::string &amp;sampleWeights, const std::string &amp;labelFile, const std::string &amp;labelWeights)</td></tr>
<tr class="separator:aa1dbfe37c3c0d986f805c25a902c5502"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3da599332fad68bc774234829fdd6554"><td class="memItemLeft" align="right" valign="top"><a id="a3da599332fad68bc774234829fdd6554"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>loadFromH5</b> (const std::string &amp;sampleFile, const std::string &amp;sampleWeights)</td></tr>
<tr class="separator:a3da599332fad68bc774234829fdd6554"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd0ea2cb564b452718b7e8f026292399"><td class="memItemLeft" align="right" valign="top"><a id="acd0ea2cb564b452718b7e8f026292399"></a>
const <a class="el" href="class_double_matrix_array.html">DoubleMatrixArray</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getSamples</b> (int batch) const</td></tr>
<tr class="separator:acd0ea2cb564b452718b7e8f026292399"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4aeb8a9bd6af931d5d64bb88c28e9df"><td class="memItemLeft" align="right" valign="top"><a id="ae4aeb8a9bd6af931d5d64bb88c28e9df"></a>
const <a class="el" href="class_double_matrix_array.html">DoubleMatrixArray</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getLabels</b> (int batch) const</td></tr>
<tr class="separator:ae4aeb8a9bd6af931d5d64bb88c28e9df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd1d61b095221a3c2779eed432130769"><td class="memItemLeft" align="right" valign="top"><a id="abd1d61b095221a3c2779eed432130769"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getNumBatches</b> () const</td></tr>
<tr class="separator:abd1d61b095221a3c2779eed432130769"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa84b66bc8752b2baa5ff761bfcd4e6a2"><td class="memItemLeft" align="right" valign="top"><a id="aa84b66bc8752b2baa5ff761bfcd4e6a2"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getBatchSize</b> () const</td></tr>
<tr class="separator:aa84b66bc8752b2baa5ff761bfcd4e6a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e56a3ef3791e58de50fd0c12c6490c3"><td class="memItemLeft" align="right" valign="top"><a id="a6e56a3ef3791e58de50fd0c12c6490c3"></a>
const <a class="el" href="class_double_matrix.html">DoubleMatrix</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getSample</b> (int batch, int i) const</td></tr>
<tr class="separator:a6e56a3ef3791e58de50fd0c12c6490c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4aa24f458a5c159d27d68c6f722e19ea"><td class="memItemLeft" align="right" valign="top"><a id="a4aa24f458a5c159d27d68c6f722e19ea"></a>
const <a class="el" href="class_double_matrix.html">DoubleMatrix</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getLabel</b> (int batch, int i) const</td></tr>
<tr class="separator:a4aa24f458a5c159d27d68c6f722e19ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86a4157ca1a2024281b0279998cc82e6"><td class="memItemLeft" align="right" valign="top"><a id="a86a4157ca1a2024281b0279998cc82e6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getNumSamples</b> () const</td></tr>
<tr class="separator:a86a4157ca1a2024281b0279998cc82e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6c9830a8cc8389605ad003b2bbab0b9"><td class="memItemLeft" align="right" valign="top"><a id="ad6c9830a8cc8389605ad003b2bbab0b9"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getNumLabels</b> () const</td></tr>
<tr class="separator:ad6c9830a8cc8389605ad003b2bbab0b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class for holding data for inference.</p>
<p>It may hold just the inputs, or both inputs and expected outputs (usually refered to as labels, or ground truth).</p>
<p>If it contains both it can be used for training, or for estimating the accuracy of a given model. Otherwise it can only be used for inference.</p>
<p>It loads the data from an h5 file, and divides it to batches according to a specified batch size. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_simple_training_set_8h_source.html">SimpleTrainingSet.h</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
